package com.mdz.myapplication.utils;

import java.io.*;

/**
 * @author lake957
 */
public class ReadFile {
	public static String readTxt(File file) throws IOException {
		String s = "";
		InputStreamReader in = new InputStreamReader(new FileInputStream(file),"UTF-8");
		BufferedReader br = new BufferedReader(in);
		StringBuffer content = new StringBuffer();
		while ((s=br.readLine())!=null){
			content = content.append(s);
		}
		return content.toString();
	}
}
